#ifndef FUNCTIONS_H
#define FUNCTIONS_H

  #include "basic.h"
  #include "dataStructures.h"

	//Checks argument to see if it's a valid port
	int checkPort(char * enteredPort);
	
	//Struct to hold peer addresses
	struct peer {
		char * address;
		unsigned short port;
	};
		
	//Parses arguments on the command line into peer and file lists
	int parseArgument(struct list * listLocalFiles, struct list * listInitialPeers, char * argument);
	
	//Prints all the peers specified on the command line
	void printInitialPeers (struct list list);


#endif
